package com.etc.traval.dao;

import java.util.List;

import com.etc.travel.entity.Place;
import com.etc.travel.entity.Placecom;
import com.etc.travel.entity.User;

public interface PlacecomDao {

	//查询所有评论
	public List<Placecom> queryAllPlacecom(int page,int size);
	//根据user查找
	public List<Placecom> queryPlacecomByUser(User user,int page,int size); 
	//根据景点查找
	public List<Placecom> queryPlacecomByPlace(Place place,int page,int size);
	//根据id查找
	public Placecom queryPlacecomById(int id);
    //根据id删除
	public boolean deletePlacecomById(int id);
	//添加评论
	public boolean addPlacecom(Placecom placecom);
	//根据景点查询评论条数
	public int queryCountByPlace(Place place);
	//根据评论热度分页查找地区
	public List<Place> queryPlaceByCom(int size,int page);
}
